//
//  LWProductChectGroup.m
//  1.28  weibo
//
//  Created by mac on 15/3/2.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "LWProductChectGroup.h"
#import "LWProductchectItme.h"

@implementation LWProductChectGroup




- (void)setSelectIndex:(NSInteger)selectIndex{

    _selectIndex = selectIndex;
    
    
    if (_selectIndex >= self.itmes.count) {
        _selectIndex = 0;
    }
    
    for (int i = 0; i < self.itmes.count; i++) {
        
        LWProductchectItme *itme = self.itmes[i];
        
        if (i == _selectIndex) {
            itme.check = YES;
        }else{
            itme.check = NO;
        }
    }
   
   }
- (void)setItmes:(NSArray *)itmes{

    [super setItmes:itmes];
    
    self.selectIndex = _selectIndex;
    
}

@end
